/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.aeso.betabit.util;

import java.util.HashMap;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author arcf
 */
public class CriadorTabelas {
    
    public void criar() {
        Map configuration = new HashMap();
        configuration.put("eclipselink.ddl-generation", "create-tables");
        EntityManagerFactory factory = Persistence.createEntityManagerFactory("BetABitPU", configuration);
        EntityManager manager = factory.createEntityManager();
        manager.close();
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public static void main(String args[]) {
    	new CriadorTabelas().criar();
    }
}
